#ifndef USERINFOWIDGET_H
#define USERINFOWIDGET_H

#include "model/datacenter.h"
#include <QDialog>
#include <QLabel>
#include <QWidget>

class UserInfoWidget : public QDialog
{
    Q_OBJECT
  public:
    UserInfoWidget(const model::UserInfo &userInfo, QWidget *parent);

    void initSignalSlot();

    void clickDeleteFriendBtn();

    void clickApplyBtn();

  private:
    const model::UserInfo &_userInfo;

    QPushButton *_avatarBtn;
    QLabel *_idTag;
    QLabel *_idLabel;
    QLabel *_nameTag;
    QLabel *_nameLabel;
    QLabel *_phoneTag;
    QLabel *_phoneLabel;

    QPushButton *_applyBtn;
    QPushButton *_sendMessageBtn;
    QPushButton *_deleteFriendBtn;
};

#endif // USERINFOWIDGET_H
